package com.ktjy.mapper;

import com.ktjy.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author lihanzhui
 * @version 1.0
 * @adte 2025/6/4 上午8:41
 */
public interface SupplierMapper {
    int count();
    List<Supplier> getSupplierList();
    Supplier getStorageRecordsBySupplierId(@Param("supplierId") Integer supplierId);
    int insert(Supplier supplier);
    int update(Supplier supplier);
    int delete(@Param("id") Integer id);
    //第四章上机
    List<Supplier> getSupplierByNameList(@Param("supCode")String supCode, @Param("supName")String supName, @Param("supContact")String supContact, @Param("createdTime")Date createdTime);
    List<Supplier> selectPageList(@Param("pageNo")Integer pageNo, @Param("pageSize")Integer pageSize);
}
